<form action="/user/uploadavatar" method="post" enctype="multipart/form-data">
    <input name="file" type="file" />
    <input type="submit" />
</form>